package com.lhnstart.learn.bases.codeblock_;

/**
 * 代码块细节讲解
 *
 * @author lhn
 * @date 2023/07/12 11:07
 * @since 1.0.0
 **/
public class CodeBlockDetail01 {

    public static void main(String[] args) {
        System.out.println(AA.aa);
        System.out.println(AA.aa);
    }

}

class BB{
    static  {
        System.out.println("BB 的静态代码块被调用了!");
    }
}

class AA extends BB {

    static String aa;

    static  {
        System.out.println("AA 的静态代码块被调用了!");
    }

}
